package com.zl.web.controller.system;

import com.zl.system.service.fieldListApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/fieldListApi")
public class fieldListApiController {

    @Autowired
    private fieldListApiService ApiService;

    @RequestMapping("getListApi/{tableName}")
    public List<Map<String, Object>> getListApi(@PathVariable("tableName") String tableName){

        return ApiService.getListApi(tableName);
    }
}
